package Controller;
import Model.*;
import java.util.*;

public class MachineCtr
{
    
    public MachineCtr()
    {
        MachineCont.getInstance();
    }

    public static void DeleteMachine(long theSerialNo)
    {
        for(int i=0;i<MachineCont.getCont().size();i++)
        {
            if(MachineCont.getCont().get(i).getSerialNo()==theSerialNo)MachineCont.getCont().remove(i);
        }
    }
    
    public static void SearchMachine(long theID)
    {
        for(int i=0;i<MachineCont.getCont().size();i++)
        {
            if(EmployeeCont.getCont().get(i).getID()==theID)System.out.println("Machine exists");
            else System.out.println("Machine doesn`t exist");
        }
    }
    
    public static void addMachine(Machine m)
    {
        MachineCont.getInstance().addMachine(m);
    }
    

}
